<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>POS主数据</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<t:base type="bootstrap,bootstrap-table,layer,validform,webuploader,bootstrap-form"></t:base>
</head>
 <body style="overflow:hidden;overflow-y:auto;">
 <div class="container" style="width:100%;">
	<div class="panel-heading"></div>
	<div class="panel-body">
	<form class="form-horizontal" role="form" id="formobj" action="posDetailController.do?doUpdate" method="POST">
		<input type="hidden" id="btn_sub" class="btn_sub"/>
		<input type="hidden" id="id" name="id" value="${posDetail.id}"/>
		<div class="row">
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					POS编号：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posNo" type="text" class="form-control" maxlength="32" value = "${posDetail.posNo}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					商户名称：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posName" type="text" class="form-control" maxlength="132" value = "${posDetail.posName}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					商户地址：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posAddr" type="text" class="form-control" maxlength="132" value = "${posDetail.posAddr}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					联系人：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posConcract" type="text" class="form-control" maxlength="32" value = "${posDetail.posConcract}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					联系电话：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posMobile" type="text" class="form-control" maxlength="32" value = "${posDetail.posMobile}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					POS序列号：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posId" type="text" class="form-control" maxlength="32" value = "${posDetail.posId}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					经度：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posJingdu" type="text" class="form-control" maxlength="32" value = "${posDetail.posJingdu}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					纬度：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posWeidu" type="text" class="form-control" maxlength="32" value = "${posDetail.posWeidu}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					POS类型：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posType" type="text" class="form-control" maxlength="32" value = "${posDetail.posType}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					备注：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posRemark" type="text" class="form-control" maxlength="1132" value = "${posDetail.posRemark}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					安装日期：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posInstalldate" type="text" class="form-control" maxlength="32" value = "${posDetail.posInstalldate}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					省份：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posShengfen" type="text" class="form-control" maxlength="32" value = "${posDetail.posShengfen}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					城市：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posChengshi" type="text" class="form-control" maxlength="32" value = "${posDetail.posChengshi}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					区域：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posQuyu" type="text" class="form-control" maxlength="32" value = "${posDetail.posQuyu}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					分组：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="posFenzu" type="text" class="form-control" maxlength="32" value = "${posDetail.posFenzu}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					门店照片1：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
				<t:webUploader name="shPic1" outJs="true" auto="true" showImgDiv="filediv_shPic1" type="image" buttonText='添加图片' displayTxt="false" pathValues="${posDetail.shPic1}"></t:webUploader>
				<div class="form" id="filediv_shPic1"></div>
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					门店照片2：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
				<t:webUploader name="shPic2" outJs="true" auto="true" showImgDiv="filediv_shPic2" type="image" buttonText='添加图片' displayTxt="false" pathValues="${posDetail.shPic2}"></t:webUploader>
				<div class="form" id="filediv_shPic2"></div>
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					营业执照：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
				<t:webUploader name="shYyzz" outJs="true" auto="true" showImgDiv="filediv_shYyzz" type="image" buttonText='添加图片' displayTxt="false" pathValues="${posDetail.shYyzz}"></t:webUploader>
				<div class="form" id="filediv_shYyzz"></div>
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					协议：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
				<t:webUploader name="shShxy" outJs="true" auto="true" showImgDiv="filediv_shShxy" type="image" buttonText='添加图片' displayTxt="false" pathValues="${posDetail.shShxy}"></t:webUploader>
				<div class="form" id="filediv_shShxy"></div>
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					其他图片：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
				<t:webUploader name="shOtherpic" outJs="true" auto="true" showImgDiv="filediv_shOtherpic" type="image" buttonText='添加图片' displayTxt="false" pathValues="${posDetail.shOtherpic}"></t:webUploader>
				<div class="form" id="filediv_shOtherpic"></div>
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					营业时间：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="shYysj" type="text" class="form-control" maxlength="132" value = "${posDetail.shYysj}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					安装人：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="insUser" type="text" class="form-control" maxlength="32" value = "${posDetail.insUser}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		<div class="bt-item col-md-6 col-sm-6">
			<div class="row">
				<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
					安装日期：
				</div>
				<div class="col-md-9 col-sm-9 col-xs-9 bt-content">
					<input name="insDate" type="text" class="form-control" maxlength="32" value = "${posDetail.insDate}"  ignore="ignore"  />
				</div>
			</div>
		</div>
		</div>
	</form>
	</div>
 </div>
<script type="text/javascript">
var subDlgIndex = '';
$(document).ready(function() {
	//单选框/多选框初始化
	$('.i-checks').iCheck({
		labelHover : false,
		cursor : true,
		checkboxClass : 'icheckbox_square-green',
		radioClass : 'iradio_square-green',
		increaseArea : '20%'
	});
	
	//表单提交
	$("#formobj").Validform({
		tiptype:function(msg,o,cssctl){
			if(o.type==3){
				validationMessage(o.obj,msg);
			}else{
				removeMessage(o.obj);
			}
		},
		btnSubmit : "#btn_sub",
		btnReset : "#btn_reset",
		ajaxPost : true,
		beforeSubmit : function(curform) {
		},
		usePlugin : {
			passwordstrength : {
				minLen : 6,
				maxLen : 18,
				trigger : function(obj, error) {
					if (error) {
						obj.parent().next().find(".Validform_checktip").show();
						obj.find(".passwordStrength").hide();
					} else {
						$(".passwordStrength").show();
						obj.parent().next().find(".Validform_checktip").hide();
					}
				}
			}
		},
		callback : function(data) {
			var win = frameElement.api.opener;
			if (data.success == true) {
				frameElement.api.close();
			    win.reloadTable();
			    win.tip(data.msg);
			} else {
			    if (data.responseText == '' || data.responseText == undefined) {
			        $.messager.alert('错误', data.msg);
			        $.Hidemsg();
			    } else {
			        try {
			            var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
			            $.messager.alert('错误', emsg);
			            $.Hidemsg();
			        } catch (ex) {
			            $.messager.alert('错误', data.responseText + "");
			            $.Hidemsg();
			        }
			    }
			    return false;
			}
		}
	});
});
</script>
</body>
</html>